package com.example.demo.entity;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.time.LocalDate;

@Entity
@Table(name = "orders")
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class Orders {

  @Id
  private String orderNumber;

  private double initialPrice;

  private double price;

  private LocalDate startTime;

  private LocalDate endTime;

  private String status;

  private String userId;

  private String details;
}
